<?php defined('KX_ROOT') || exit('Permission denied');?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
        <meta charset="UTF-8" name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
        <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
        <title><?php include \Kuxin\View::parseTpl($tkd['title']);?></title>
        <meta name="keywords" content="<?php include \Kuxin\View::parseTpl($tkd['keywords']);?>">
        <meta name="description" content="<?php include \Kuxin\View::parseTpl($tkd['description']);?>">
        <meta name="author" content="www.ptcms.com">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <meta name="renderer" content="webkit">
        <meta name="viewport" content="width=device-width" />
        <meta name="applicable-device" content="pc">
        <meta http-equiv="mobile-agent" content="format=html5; url=<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "mobileurl");?><?php echo $_SERVER['REQUEST_URI'];?>">
        <meta http-equiv="Cache-Control" content="no-siteapp" />
        <meta http-equiv="Cache-Control" content="no-transform" />
		<link rel="shortcut icon" href="/favicon.ico" />
        <link rel="stylesheet" href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno3/css/mulu.css"/>
	</head>
	<body>
    <div class="header">
        <div class="logo"><a href="/">笔趣阁移动版</a></div>
        <div class="reg">
            <div id="login_top">
                <?php if(($islogin)):?>
                <a href="<?php echo \Kuxin\Helper\Url::build("user.index.index",[],"");?>" style="max-width:90px;overflow:hidden;height:50px;padding:0px 10px;" class="c_index_top"><?php echo $userinfo['nickname']?:$userinfo['name'];?></a><a style="max-width:90px;overflow:hidden;height:50px;padding:0px 10px;" href="<?php echo \Kuxin\Helper\Url::build("user.auth.logout",[],"");?>">退出</a>
                <?php else:?>
                <a class="login_topbtn c_index_login" href="<?php echo \Kuxin\Helper\Url::build("user.auth.login",[],"");?>">登录</a>
                <a class="login_topbtn c_index_login" href="<?php echo \Kuxin\Helper\Url::build("user.auth.register",[],"");?>">注册</a>&nbsp;&nbsp;
                <?php endif;?>
            </div>
        </div>
    </div>
		
<div class="nav">
    <ul>
        <li><a href="<?php echo \Kuxin\Helper\Url::build("novel.category.index",[],"");?>">分类</a></li>
        <li><a href="<?php echo \Kuxin\Helper\Url::build("novel.rank.index",[],"");?>">排行</a></li>
        <li><a href="<?php echo \Kuxin\Helper\Url::build("novel.over.index",[],"");?>">全本</a></li>
        <li><a href="<?php echo \Kuxin\Helper\Url::build("user.history.index",[],"");?>">阅读记录</a></li>
        <li><a href="<?php echo \Kuxin\Helper\Url::build("user.mark.index",[],"");?>">书架</a></li>
        <div class="cc"></div>
    </ul>
</div>

<div class="search">
    <form action="<?php echo \Kuxin\Helper\Url::build("novel.search.result",[],"");?>">
        <table cellpadding="0" cellspacing="0" style="width:100%;">
            <tr>
                <td style="background-color:#fff; border:1px solid #CCC;">
                    <input style="height:20px;line-height:20px;" id="s_key" name="searchkey" type="text" class="key" value="输入书名后搜索，宁可少字不要错字" onFocus="this.value=''" />
                </td>
                <td style="width:35px; background-color:#0080C0; background-image:url('<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno3/images/search.png'); background-repeat:no-repeat; background-position:center">
                    <input name="submit" type="submit" value="" class="go">
                </td>
            </tr>
        </table>
    </form>
</div>
		<div class="article">
			<h2 class="title"><span><a href="#">封面强推</a></span></h2>
            <?php $list=\Kuxin\Block::show('recommend', ['recommendid'=>"2",'num'=>"3"]);?>
            <?php if(is_array($list)): foreach($list as $key =>$loop):?>
			<div class="block">
				<div class="block_img">
					<a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['data']['novel']['id'],'pinyin'=>$loop['data']['novel']['pinyin']],"");?>"><img height=100 width=80 src="<?php echo $loop['data']['novel']['cover'];?>"/></a>
				</div>
				<div class="block_txt">
					<p><a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['data']['novel']['id'],'pinyin'=>$loop['data']['novel']['pinyin']],"");?>"><h2><?php echo $loop['data']['novel']['name'];?></h2></a></p>
					<p>作者：<?php echo $loop['data']['author']['name'];?></p>
					<p><?php echo \Kuxin\Helper\Str::truncate(showIntroLine($loop['data']['novel']['intro']),50);?></p>
				</div>
				<div style="clear:both"></div>
			</div>
            <?php endforeach; endif;?>
		</div>
		<div class="article">
			<h2 class="title"><span>点击榜</h2>
			<div class="block">
                <?php $novellist=\Kuxin\Block::show('novel.list', ['order'=>'weekvisit','num'=>5]);?>
                <?php if(is_array($novellist)): foreach($novellist as $key =>$loop):?>
                <div class="block">
                    <div class="block_img">
                        <a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>"><img height=100 width=80 src="<?php echo $loop['novel']['cover'];?>"/></a>
                    </div>
                    <div class="block_txt">
                        <p><a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>"><h2><?php echo $loop['novel']['name'];?></h2></a></p>
                        <p>作者：<?php echo $loop['author']['name'];?></p>
                        <p><?php echo \Kuxin\Helper\Str::truncate(showIntroLine($loop['novel']['intro']),50);?></p>
                    </div>
                    <div style="clear:both"></div>
                </div>
                <?php endforeach; endif;?>
			</div>
		</div>
    <div class="article">
        <h2 class="title"><span>投票榜</h2>
        <div class="block">
            <?php $novellist=\Kuxin\Block::show('novel.list', ['order'=>'vote','num'=>5]);?>
            <?php if(is_array($novellist)): foreach($novellist as $key =>$loop):?>
            <div class="block">
                <div class="block_img">
                    <a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>"><img height=100 width=80 src="<?php echo $loop['novel']['cover'];?>"/></a>
                </div>
                <div class="block_txt">
                    <p><a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>"><h2><?php echo $loop['novel']['name'];?></h2></a></p>
                    <p>作者：<?php echo $loop['author']['name'];?></p>
                    <p><?php echo \Kuxin\Helper\Str::truncate(showIntroLine($loop['novel']['intro']),50);?></p>
                </div>
                <div style="clear:both"></div>
            </div>
            <?php endforeach; endif;?>
        </div>
    </div>
    <div class="article">
        <h2 class="title"><span>最近更新</h2>
        <div class="block">
            <?php $novellist=\Kuxin\Block::show('novel.list', ['order'=>'lastupdate','num'=>5]);?>
            <?php if(is_array($novellist)): foreach($novellist as $key =>$loop):?>
            <ul>
                <li><a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>" class="blue"><?php echo $loop['novel']['name'];?></a>/<?php echo $loop['author']['name'];?></li>
            </ul>
            <?php endforeach; endif;?>
        </div>
    </div>
		<div class="footer">
    <ul>
        <li><a href="./">首页</a></li>
        <li><a href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "pcurl");?>">电脑版</a></li>
        <li><a href="<?php echo \Kuxin\Helper\Url::build("user.mark.index",[],"");?>">书架</a></li>
    </ul>
</div>
	</body>
</html>
